<template>
  <div class="expressText">
    <div class="booklist cursor" v-for="(item,index) in booklistArr" :key="index" @click="$router.push({ path: '/bookdetails', query: { id: item.book_id } })">
      <img :src="item.photo" />
      <div class="bookname">{{item.book_name}}</div>
      <div class="classification">{{item.type_name}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["booklistArr"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.expressText {
  width: 1160px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  .booklist {
      width: 175px;
      margin-bottom: 30px;
    img {
      width: 175px;
      height: 235px;
    }
    .bookname {
      margin: 16px 0 11px;
      line-height: 20px;
      font-size: 15px;
      font-weight: 500;
      color: #333333;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .classification {
      font-size: 14px;
      font-weight: 500;
      color: #999999;
    }
  }
}
</style>